package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 导游订单分成表
    */
@ApiModel(value="com-example-springbootdemo-entity-GuideOrderShare")
@TableName(value = "guide_order_share")
public class GuideOrderShare {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 导游id
     */
    @TableField(value = "guide_id")
    @ApiModelProperty(value="导游id")
    private Long guideId;

    /**
     * 订单详情id
     */
    @TableField(value = "order_item_id")
    @ApiModelProperty(value="订单详情id")
    private Long orderItemId;

    /**
     * 总订单id 
     */
    @TableField(value = "order_id")
    @ApiModelProperty(value="总订单id ")
    private Long orderId;

    /**
     * 订单详情中的实际付款金额
     */
    @TableField(value = "order_item_amount")
    @ApiModelProperty(value="订单详情中的实际付款金额")
    private BigDecimal orderItemAmount;

    /**
     * 实际可分成金额(有可能要扣除优惠券)
     */
    @TableField(value = "share_price")
    @ApiModelProperty(value="实际可分成金额(有可能要扣除优惠券)")
    private BigDecimal sharePrice;

    /**
     * 是否删除0 未删除 1删除(订单退货时候置为1)
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="是否删除0 未删除 1删除(订单退货时候置为1)")
    private Byte isDelete;

    /**
     * 金额是否冻结 0冻结 1不冻结(订单完成后设置为不冻结金额)
     */
    @TableField(value = "status")
    @ApiModelProperty(value="金额是否冻结 0冻结 1不冻结(订单完成后设置为不冻结金额)")
    private Byte status;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    @TableField(value = "gmt_delete")
    @ApiModelProperty(value="")
    private Date gmtDelete;

    public static final String COL_ID = "id";

    public static final String COL_GUIDE_ID = "guide_id";

    public static final String COL_ORDER_ITEM_ID = "order_item_id";

    public static final String COL_ORDER_ID = "order_id";

    public static final String COL_ORDER_ITEM_AMOUNT = "order_item_amount";

    public static final String COL_SHARE_PRICE = "share_price";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_STATUS = "status";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_GMT_DELETE = "gmt_delete";

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取导游id
     *
     * @return guide_id - 导游id
     */
    public Long getGuideId() {
        return guideId;
    }

    /**
     * 设置导游id
     *
     * @param guideId 导游id
     */
    public void setGuideId(Long guideId) {
        this.guideId = guideId;
    }

    /**
     * 获取订单详情id
     *
     * @return order_item_id - 订单详情id
     */
    public Long getOrderItemId() {
        return orderItemId;
    }

    /**
     * 设置订单详情id
     *
     * @param orderItemId 订单详情id
     */
    public void setOrderItemId(Long orderItemId) {
        this.orderItemId = orderItemId;
    }

    /**
     * 获取总订单id 
     *
     * @return order_id - 总订单id 
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * 设置总订单id 
     *
     * @param orderId 总订单id 
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取订单详情中的实际付款金额
     *
     * @return order_item_amount - 订单详情中的实际付款金额
     */
    public BigDecimal getOrderItemAmount() {
        return orderItemAmount;
    }

    /**
     * 设置订单详情中的实际付款金额
     *
     * @param orderItemAmount 订单详情中的实际付款金额
     */
    public void setOrderItemAmount(BigDecimal orderItemAmount) {
        this.orderItemAmount = orderItemAmount;
    }

    /**
     * 获取实际可分成金额(有可能要扣除优惠券)
     *
     * @return share_price - 实际可分成金额(有可能要扣除优惠券)
     */
    public BigDecimal getSharePrice() {
        return sharePrice;
    }

    /**
     * 设置实际可分成金额(有可能要扣除优惠券)
     *
     * @param sharePrice 实际可分成金额(有可能要扣除优惠券)
     */
    public void setSharePrice(BigDecimal sharePrice) {
        this.sharePrice = sharePrice;
    }

    /**
     * 获取是否删除0 未删除 1删除(订单退货时候置为1)
     *
     * @return is_delete - 是否删除0 未删除 1删除(订单退货时候置为1)
     */
    public Byte getIsDelete() {
        return isDelete;
    }

    /**
     * 设置是否删除0 未删除 1删除(订单退货时候置为1)
     *
     * @param isDelete 是否删除0 未删除 1删除(订单退货时候置为1)
     */
    public void setIsDelete(Byte isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 获取金额是否冻结 0冻结 1不冻结(订单完成后设置为不冻结金额)
     *
     * @return status - 金额是否冻结 0冻结 1不冻结(订单完成后设置为不冻结金额)
     */
    public Byte getStatus() {
        return status;
    }

    /**
     * 设置金额是否冻结 0冻结 1不冻结(订单完成后设置为不冻结金额)
     *
     * @param status 金额是否冻结 0冻结 1不冻结(订单完成后设置为不冻结金额)
     */
    public void setStatus(Byte status) {
        this.status = status;
    }

    /**
     * @return gmt_create
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * @param gmtCreate
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * @return gmt_modified
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * @param gmtModified
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     * @return gmt_delete
     */
    public Date getGmtDelete() {
        return gmtDelete;
    }

    /**
     * @param gmtDelete
     */
    public void setGmtDelete(Date gmtDelete) {
        this.gmtDelete = gmtDelete;
    }
}